package org.firefly.fx.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {
	public static String patterTime = "yyyy-MM-dd HH:mm:ss";
	
	public static String getFormatDate(Date date,String pattern){
		 SimpleDateFormat parser = new SimpleDateFormat(pattern);
		 return parser.format(date);
	}
	
	public static String format(){
		Date date  = new Date();
		return getFormatDate(date, patterTime);
	}
	
}	
